package com.ruoyi.system.service;

import com.github.pagehelper.PageInfo;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.core.domain.BaseDto;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.domain.dto.MultiLatitudDto;
import com.ruoyi.system.domain.vo.MultiLatitudVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface MultiLatitudeService {


    @DataSource(DataSourceType.SLAVE)
    PageInfo<MultiLatitudVo.Result> queryByGjz(MultiLatitudDto.Query dto, Integer pageSize, Integer pageNum) throws InterruptedException;

    @DataSource(DataSourceType.SLAVE)
    List<MultiLatitudVo.Result.BcLb> queryDetail(String jzlsh);

    @DataSource(DataSourceType.SLAVE)
    List<MultiLatitudVo.Result.BcLb> queryDetailByGjz(String jzlsh, String bcgjz);

    @DataSource(DataSourceType.SLAVE)
    PageInfo<MultiLatitudVo.Result> select(MultiLatitudDto.Query dto, Integer pageSize, Integer pageNum);

    @DataSource(DataSourceType.SLAVE)
    MultiLatitudVo.QueryDetail queryBasy(String jzlsh);

    @DataSource(DataSourceType.SLAVE)
    void exportData(HttpServletResponse response, BaseDto<MultiLatitudDto.Query> dto) throws InterruptedException;
}
